package com.qiandw.enterprise.credit.mapper

import com.qiandw.enterprise.credit.entity.Module
import java.util.List

import org.apache.ibatis.annotations.Param

trait ModuleMapper {
  def deleteByPrimaryKey(id: Integer): Integer

  def insert(record: Module): Int

  def insertSelective(record: Module): Int

  def selectByPrimaryKey(id: Integer): Module

  def updateByPrimaryKeySelective(record: Module): Int

  def updateByPrimaryKey(record: Module): Int

  def listModulesByParentId(@Param("id") id: Integer): List[Module]

  def selectAll(): List[Module]
}